package xiangya.bysj.service.interf;

import java.util.List;

import xiangya.bysj.entity.Doctor;

/**
 * 药师业务类的接口
 * @author Mr.zhang
 *
 */
public interface DoctorServiceInterface extends ServiceInterface<Doctor> {
	/**
	 * 登陆 
	 * @param doctorCode 账号
	 * @param doctorPass 密码
	 * @return 登陆成功返回对应账户信息，登陆失败返回null
	 * @throws Exception
	 */
	public Doctor login(String doctorCode,String doctorPass) throws Exception;
	
	/**
	 * 根据名字模糊查询
	 * @param doctorName 用户名字
	 * @return 返回结果集
	 * @throws Exception
	 */
	public List<Doctor> getSome(String doctorName,int doctorStatus) throws Exception;
	
	/**
	 * 根据登陆账号删除
	 * @param doctorCode 登陆账号
	 */
	public void deleteByCode(String doctorCode) throws Exception;
}
